<div ng-include src="'tpl/public/header.html'"></div> 
<div class="contents">
  <ol class="breadcrumb">
    <li><a href="#/index/panel">首页</a></li>
     <li class="active">个人供应方</li>
  </ol>
  <form class="form-inline search-box" role="form" ng-submit="search()" novalidate>
    <div class="form-group">
      <label class="sr-only" >登录名</label>
      <input type="text" class="form-control" placeholder="登录名" ng-model="searchMap.loginName">
    </div>
    <div class="form-group">
      <label class="sr-only" >姓名</label>
      <input type="text" class="form-control" placeholder="姓名" ng-model="searchMap.name">
    </div>
    <div class="form-group">
      <label class="sr-only" >手机号</label>
      <input type="text" class="form-control" placeholder="手机号" ng-model="searchMap.mobile">
    </div>
    <div class="form-group">
      <label class="sr-only" >公司名称</label>
      <input type="text" class="form-control" placeholder="公司名称" ng-model="searchMap.companyName">
    </div>
    <div class="form-group">
      <label class="sr-only" >公司地址</label>
      <input type="text" class="form-control" placeholder="公司地址" ng-model="searchMap.companyAddress">
    </div>
    <div class="form-group">
      <label class="sr-only" >选择认证</label>
      <select class="form-control" ng-model="searchMap.checkStatus" ng-options="m.value as m.text for m in dictMap.productSupplierStatusModel" placeholder="选择认证"><option value="">--选择认证--</option></select>
    </div> 
    <button type="submit" class="btn btn-primary">查询</button>
    <button class="btn btn-primary" style="margin-left:10px;" ng-click="exportCsv();">导出CVS</button>
  </form>
  <div>
    
  </div>
  <table class="table table-striped table-hover">
    <thead>
      <tr>
       <!-- <th><input type="checkbox" name="chkProjectAll" id="chkProjectAll" ng-click="chkProjectAll();" />
        </th>-->
        <th width="50" ng-click="orderby('id')" class="cur-p">ID</th>
        <th>登录名</th>
        <th width="80">手机号码</th>
        <th width="80">姓名</th>
        <th width="80">名片</th>
        <th width="100">公司地址</th>
        <th width="250">公司/职位</th>
        <th width="80">状态</th>
        <th width="80">操作</th>
      </tr>
    </thead>
    <tbody>
      <tr ng-repeat="product in productSupplierList">
   <!--     <td>
          <input type="checkbox" name="chkProject" accessId="{{product.pAccessId}}" value="{{product.id}}" />
        </td>-->
        <td>{{product.id}}</td>
        <td>{{product.loginName}}</td>
        <td>{{product.mobile}}</td>
        <td>{{product.name}}</td>
        <td><a ng-href="{{staticHost}}{{product.businessCardAddress}}" target="_blank"><img ng-src="{{staticHost}}{{product.businessCardAddress}}" width="100" height="50" ng-show="product.businessCardAddress"/></a></td>
        <td>{{product.companyAddress}}</td>
        <td>{{product.companyName}}/{{product.companyPosition}}</td>
        <td>{{product.checkStatus | productSupplierStatusRender}}</td>
        <td class="optd">
          <a href="#/personalsupplier/detail?id={{product.id}}">编辑</a>
        </td>
      </tr>
    </tbody>
  </table>

  <div class="pager-box" ng-include src="'tpl/public/pager.html'" ng-show="productSupplierList.length > 0">
  </div>

</div>
